package main

import (
	"fmt"
	"strings"
)

func test1if(s string) {
	if true {
		fmt.Println("true")
	}
	if len(s) < 3 {
		fmt.Println("string length is less than 3")
	} else if len(s) < 9 {
		fmt.Println("string length is less than 9")
	} else if s == "" {
		fmt.Println("string is empty")
	} else if strings.TrimSpace(s) == "" {
		fmt.Println("string is empty TrimSpace ....")
	}
	fmt.Println(isEmpty(""))
}
func isEmpty(string2 string) bool {
	return len(string2) == 0 || strings.TrimSpace(string2) == "" || string2 == ""
}
